﻿using Permissions.EmployeeApp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Permissions.Web.Controllers
{
    public class EmployeeController : Controller
    {
        private readonly IEmployeeAppService _employeeRepository;

        public EmployeeController(IEmployeeAppService employeeRepository)
        {
            _employeeRepository = employeeRepository;
        }

        // GET: Employee
        public ActionResult Index()
        {
            var employees = _employeeRepository.GetEmployees();

            return View(employees);
        }
    }
}